import {ref} from 'vue'
import { ElMessage } from 'element-plus'
import { parkInfoAPI } from "@/apis/park"
export const useParkInfo = ()=>{
//声明响应式数据
const parkInfoData = ref({})
//查询楼宇概况
const parkInfo = async () => {
  try {
    const res = await parkInfoAPI()
    console.log(res);
    parkInfoData.value = res.data
  } catch (err) {
    if (err)
      ElMessage.error(err.response.data.msg)
  }
}
return{
  parkInfoData,
  parkInfo
}
}